package lab02.test37;

/**
 * Created by 婷婷 on 2017/11/22.
 */
public class Student {
    String name;
    String degree;
    double math;
    double english;
    double computer;

    public Student (){}

    public Student(String name,String degree,double math,double computer,double english){

        this.computer=computer;
        this.degree=degree;
        this.english=english;
        this.math=math;
        this.name=name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDegree() {
        return degree;
    }

    public void setDegree(String degree) {
        this.degree = degree;
    }

    public double getMath() {
        return math;
    }

    public void setMath(double math) {
        this.math = math;
    }

    public double getEnglish() {
        return english;
    }

    public void setEnglish(double english) {
        this.english = english;
    }

    public double getComputer() {
        return computer;
    }

    public void setComputer(double computer) {
        this.computer = computer;
    }

    public double average(double math,double computer,double english){
        return  (math+computer+english)/3;
    }
}
